import json

import redis

redis_client = redis.StrictRedis()
with open('bilibili_bulk_API.json', 'r') as f:
    result = json.loads(f.read())
for data in result:
    redis_client.rpush('bilibili_bulk_API', json.dumps(data, ensure_ascii=False))